package com.example.zhaoping.controller;

import com.example.zhaoping.domain.ResponseResult;
import com.example.zhaoping.dto.UserRegisterDto;
import com.example.zhaoping.service.IUserService;
import com.example.zhaoping.vo.UserInfoVo;
import io.swagger.annotations.Api;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/register")
@Api(tags = "注册模块")
public class UserRegisterController {
    @Autowired
    private IUserService userService;
    @PostMapping
    public ResponseResult register(@RequestBody UserRegisterDto userRegisterDto){
        return userService.register(userRegisterDto);
    }

}
